/*
 * Copyright 2008-2012 Centro Andaluz de Innovación y Tecnologías de la
 * Información y las Comunicaciones (CITIC). All Rights Reserved.
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
 *
 * Please contact CITIC - Edificio CITIC, C/ Marie Curie, 6 Parque
 * Tecnológico de Andalucía 29590 - Campanillas, Málaga, Spain
 * or visit www.citic.es, if you need additional information or
 * have any questions.
 */

package es.citic.puedes.youtube.model;

/**
 * 
 * class that represents a YouTube playlist entry (extends from a YouTube video
 * entry)
 * 
 * 
 */
public class YouTubePlayListEntry extends YouTubeVideoMinimal {

	/**
	 * entry position in the playlist
	 */
	private Integer position;

	/**
	 * empty constructor
	 */
	public YouTubePlayListEntry() {
		super();

	}

	/**
	 * constructor with parameters
	 * 
	 * @param youTubeVideoMinimal
	 *            video object that represents the playlist entry.
	 */
	public YouTubePlayListEntry(YouTubeVideoMinimal youTubeVideoMinimal) {

		// do not forget to set the position after adding the entry to the
		// playlist
		super();
		super.setVideoId(youTubeVideoMinimal.getVideoId());
		super.setDescription(youTubeVideoMinimal.getDescription());
		super.setThumbnail(youTubeVideoMinimal.getThumbnail());
		super.setTitle(youTubeVideoMinimal.getTitle());
		super.setUrl(youTubeVideoMinimal.getUrl());
		super.setKeywords(youTubeVideoMinimal.getKeywords());
		position = null;

	}

	/**
	 * @return the position of the entry in the playlist
	 */
	public Integer getPosition() {
		return position;
	}

	/**
	 * @param position
	 *            the position to set
	 */
	public void setPosition(Integer position) {
		this.position = position;
	}

}
